/*
 * @Author: ZAL 2177624751@qq.com
 * @Date: 2025-02-27 09:59:07
 * @LastEditors: ZAL 2177624751@qq.com
 * @LastEditTime: 2025-02-27 10:41:39
 * @FilePath: \color-management\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'

// 引入页面组件
import login from '../components/login.vue'
import home from '../views/home.vue'

const routes = [
  {
    path: '/',
    name: 'login',
    component: login,
  },
  {
    path: '/home',
    name: 'home',
    component: home,
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
